﻿using UnityDemo.DemoCode.AutomaticFactory;
using UnityDemo.LoggingUtility;

/// Code was reworked from Paul Hiles posting at
/// http://www.devtrends.co.uk/blog/using-unity's-automatic-factories-to-lazy-load-expensive-dependencies
namespace UnityDemo.DemoCode
{
    public class AutomaticFactoryDemo : IDemo
    {

        public AutomaticFactoryDemo()
        {
            LogerInstance.Logger.PriorityMessage("**Showing a traditional usage of Unity***");
            new AutomaticFactoryDemoOld();
            LogerInstance.Logger.PriorityMessage("**Using the new Factory method in Unity***");
            new AutomaticFactoryDemoNew();
        }
    }
}
